import React from 'react'
import {
    HashRouter,
    Switch,
    Route
} from 'react-router-dom'
import Router from './router'
import Login from './load/login'
import Enroll from './load/enroll'

class Load extends React.Component {
    render() {
        return (
            <div>
                <HashRouter>
                    <Switch>
                        <Route path="/login" component={Login} />
                        <Route path="/enroll" component={Enroll} />
                        <Route path="/" component={Router} />
                    </Switch>
                </HashRouter>
            </div>
        )
    }
}

export default Load